package com.hmall.clients;

import com.hmall.pojo.Address;
import com.hmall.pojo.User;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author Mingxi Guo
 * @Create 2022-07-16 23:52
 * @Email guomingxi2018@163.cm
 */
@FeignClient(value = "userservice")
public interface IUserClient {

    @GetMapping("/user")
     User getById(@RequestParam("id") Long id);


    @GetMapping("/address/{id}")
    Address findAddressById(@PathVariable("id") Long id);

    @GetMapping("/user/test")
     String get();

    @GetMapping("/user/test2")
     int gett();
}
